import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class No_1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入第一个数：");
        int x = sc.nextInt();
        System.out.print("请输入运算符：");
        String op = sc.next();
        System.out.print("请输入第二个数：");
        int y = sc.nextInt();
        switch (op){
            case "+":
                System.out.println(x+"+"+y+"="+(x+y));
                break;
            case "-":
                System.out.println(x+"-"+y+"="+(x-y));
                break;
            case "*":
                System.out.println(x+"*"+y+"="+(x*y));
                break;
            case "/":
                if (y!=0) {
                    System.out.println(x + "/" + y + "=" + (x / y));
                }else {
                    System.out.println("除数不能为0！");
                }
                break;
            default:
                System.out.println("您输入的有误，请输入正确运算符!");
                break;
        }
    }
}
